package com.sukumar.android.backit.bean;

public class BackItSMSDataBean {
	private int id = -1;
	private String bingId = "";
	private String sender = "";
	private String recepient = "";
	private String message = "";
	private int count = 1;
	private String date = null;
	private String type = "";

	public String toString() {
		if (this.getBingId().equals("-8888")) {
			return "[" + this.getCount() + "] " + this.getMessage();
		} else {
			return "[" + this.getCount() + "] " + this.getBingId()
					+ " Sent to : " + this.getRecepient() + " "
					+ this.getMessage();
		}
	}

	public boolean equals(Object o) {
		return o instanceof BackItSMSDataBean
				&& ((BackItSMSDataBean) o).bingId.compareTo(bingId) == 0;
	}

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getBingId() {
		return bingId;
	}

	public void setBingId(String bingId) {
		this.bingId = bingId;
	}

	public String getSender() {
		return sender;
	}

	public void setSender(String sender) {
		this.sender = sender;
	}

	public String getRecepient() {
		return recepient;
	}

	public void setRecepient(String recepient) {
		this.recepient = recepient;
	}

	public String getMessage() {
		return message;
	}

	public void setMessage(String message) {
		this.message = message;
	}

	public int getCount() {
		return count;
	}

	public void setCount(int count) {
		this.count = count;
	}

	public String getDate() {
		return date;
	}

	public void setDate(String date) {
		this.date = date;
	}

	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}

}
